<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QQtClient2Protocol Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_q_qt_client2_protocol-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QQtClient2Protocol Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for QQtClient2Protocol:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_q_qt_client2_protocol.png" usemap="#QQtClient2Protocol_map" alt=""/>
  <map id="QQtClient2Protocol_map" name="QQtClient2Protocol_map">
<area href="class_q_qt_protocol.html" title="The QQtProtocol class very good ideology and impliment. " alt="QQtProtocol" shape="rect" coords="0,56,121,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:aff971ada789852194668dd2f8d807b87"><td class="memItemLeft" align="right" valign="top"><a id="aff971ada789852194668dd2f8d807b87"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>signalSendtoLogicLevelCode</b> ()</td></tr>
<tr class="separator:aff971ada789852194668dd2f8d807b87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header signals_class_q_qt_protocol"><td colspan="2" onclick="javascript:toggleInherit('signals_class_q_qt_protocol')"><img src="closed.png" alt="-"/>&#160;Signals inherited from <a class="el" href="class_q_qt_protocol.html">QQtProtocol</a></td></tr>
<tr class="memitem:ac1c3f7a556fff1a4e3bf4991044feea9 inherit signals_class_q_qt_protocol"><td class="memItemLeft" align="right" valign="top"><a id="ac1c3f7a556fff1a4e3bf4991044feea9"></a>
qint64&#160;</td><td class="memItemRight" valign="bottom"><b>write</b> (const QByteArray &amp;)</td></tr>
<tr class="separator:ac1c3f7a556fff1a4e3bf4991044feea9 inherit signals_class_q_qt_protocol"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95af0a9e22be37f68d953449e2c8e21d inherit signals_class_q_qt_protocol"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_protocol.html#a95af0a9e22be37f68d953449e2c8e21d">notifyToProtocolManager</a> (const <a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *self, const <a class="el" href="class_q_qt_message.html">QQtMessage</a> *message)</td></tr>
<tr class="memdesc:a95af0a9e22be37f68d953449e2c8e21d inherit signals_class_q_qt_protocol"><td class="mdescLeft">&#160;</td><td class="mdescRight">notifyToProtocolManager 为服务器功能的ProtocolManager添加的，用户，必要时调用。  <a href="class_q_qt_protocol.html#a95af0a9e22be37f68d953449e2c8e21d">More...</a><br /></td></tr>
<tr class="separator:a95af0a9e22be37f68d953449e2c8e21d inherit signals_class_q_qt_protocol"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb2a225e9d78439ea987fe9c1db667ce inherit signals_class_q_qt_protocol"><td class="memItemLeft" align="right" valign="top"><a id="aeb2a225e9d78439ea987fe9c1db667ce"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>statusChanged</b> (int status)</td></tr>
<tr class="separator:aeb2a225e9d78439ea987fe9c1db667ce inherit signals_class_q_qt_protocol"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a07ac2b0ce53e37a5963d145c77457775"><td class="memItemLeft" align="right" valign="top"><a id="a07ac2b0ce53e37a5963d145c77457775"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtClient2Protocol</b> (QObject *parent=nullptr)</td></tr>
<tr class="separator:a07ac2b0ce53e37a5963d145c77457775"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4eee40d85c7e12bf92d106d5aaa29324"><td class="memItemLeft" align="right" valign="top"><a id="a4eee40d85c7e12bf92d106d5aaa29324"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>recvCommand1</b> (const <a class="el" href="class_q_qt_client2_message.html">QQtClient2Message</a> &amp;msg)</td></tr>
<tr class="separator:a4eee40d85c7e12bf92d106d5aaa29324"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00f36e689afba4c720189329d318dbdb"><td class="memItemLeft" align="right" valign="top"><a id="a00f36e689afba4c720189329d318dbdb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>recvCommand2</b> (const <a class="el" href="class_q_qt_client2_message.html">QQtClient2Message</a> &amp;msg)</td></tr>
<tr class="separator:a00f36e689afba4c720189329d318dbdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66448ced6e5669ad6dd245e623dbdcda"><td class="memItemLeft" align="right" valign="top"><a id="a66448ced6e5669ad6dd245e623dbdcda"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>sendCommand1</b> ()</td></tr>
<tr class="separator:a66448ced6e5669ad6dd245e623dbdcda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_q_qt_protocol"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_q_qt_protocol')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_q_qt_protocol.html">QQtProtocol</a></td></tr>
<tr class="memitem:a9e4b2132fb2b1c6a37964696e25cecf5 inherit pub_methods_class_q_qt_protocol"><td class="memItemLeft" align="right" valign="top"><a id="a9e4b2132fb2b1c6a37964696e25cecf5"></a>
Q_INVOKABLE&#160;</td><td class="memItemRight" valign="bottom"><b>QQtProtocol</b> (QObject *parent=0)</td></tr>
<tr class="separator:a9e4b2132fb2b1c6a37964696e25cecf5 inherit pub_methods_class_q_qt_protocol"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80b4de63c9a5bab33c22b7c47bd22c00 inherit pub_methods_class_q_qt_protocol"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_protocol.html#a80b4de63c9a5bab33c22b7c47bd22c00">detach</a> ()</td></tr>
<tr class="separator:a80b4de63c9a5bab33c22b7c47bd22c00 inherit pub_methods_class_q_qt_protocol"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6531140a493fb35d4efd815dc9f89ce8 inherit pub_methods_class_q_qt_protocol"><td class="memItemLeft" align="right" valign="top"><a id="a6531140a493fb35d4efd815dc9f89ce8"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>attach</b> ()</td></tr>
<tr class="separator:a6531140a493fb35d4efd815dc9f89ce8 inherit pub_methods_class_q_qt_protocol"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7da29cf18ebb2b8924eab0bc73c46b57 inherit pub_methods_class_q_qt_protocol"><td class="memItemLeft" align="right" valign="top"><a id="a7da29cf18ebb2b8924eab0bc73c46b57"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>detached</b> ()</td></tr>
<tr class="separator:a7da29cf18ebb2b8924eab0bc73c46b57 inherit pub_methods_class_q_qt_protocol"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4caa7aadbb04320acc7d653956f51cb inherit pub_methods_class_q_qt_protocol"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_protocol.html#ad4caa7aadbb04320acc7d653956f51cb">initializer</a> ()</td></tr>
<tr class="separator:ad4caa7aadbb04320acc7d653956f51cb inherit pub_methods_class_q_qt_protocol"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:abf17d8d38925c2e9ab9bac4f6bf00223"><td class="memItemLeft" align="right" valign="top">virtual quint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_client2_protocol.html#abf17d8d38925c2e9ab9bac4f6bf00223">minlength</a> () override</td></tr>
<tr class="memdesc:abf17d8d38925c2e9ab9bac4f6bf00223"><td class="mdescLeft">&#160;</td><td class="mdescRight">最小包长  <a href="#abf17d8d38925c2e9ab9bac4f6bf00223">More...</a><br /></td></tr>
<tr class="separator:abf17d8d38925c2e9ab9bac4f6bf00223"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b8afc8d5785c9f7605df38e06a39008"><td class="memItemLeft" align="right" valign="top">virtual quint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_client2_protocol.html#a4b8afc8d5785c9f7605df38e06a39008">maxlength</a> () override</td></tr>
<tr class="memdesc:a4b8afc8d5785c9f7605df38e06a39008"><td class="mdescLeft">&#160;</td><td class="mdescRight">最大包长  <a href="#a4b8afc8d5785c9f7605df38e06a39008">More...</a><br /></td></tr>
<tr class="separator:a4b8afc8d5785c9f7605df38e06a39008"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5c123b096a1b1bc13bf1f1db22df4e2"><td class="memItemLeft" align="right" valign="top">virtual quint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_client2_protocol.html#ad5c123b096a1b1bc13bf1f1db22df4e2">splitter</a> (const QByteArray &amp;l) override</td></tr>
<tr class="memdesc:ad5c123b096a1b1bc13bf1f1db22df4e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">语法解析器 从流中解析报文长度 /.../quint16 size/.../.../...  <a href="#ad5c123b096a1b1bc13bf1f1db22df4e2">More...</a><br /></td></tr>
<tr class="separator:ad5c123b096a1b1bc13bf1f1db22df4e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4856c771cfc078135a824f5c9d6027b4"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_client2_protocol.html#a4856c771cfc078135a824f5c9d6027b4">dispatcher</a> (const QByteArray &amp;m) override</td></tr>
<tr class="memdesc:a4856c771cfc078135a824f5c9d6027b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">语义解析器 分发报文 /.../quint16 size/.../QByteArray data/.../  <a href="#a4856c771cfc078135a824f5c9d6027b4">More...</a><br /></td></tr>
<tr class="separator:a4856c771cfc078135a824f5c9d6027b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_class_q_qt_protocol"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_q_qt_protocol')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_q_qt_protocol.html">QQtProtocol</a></td></tr>
<tr class="memitem:a75d40f91c31b9a2d9f56dee92b9e3c35 inherit pro_attribs_class_q_qt_protocol"><td class="memItemLeft" align="right" valign="top"><a id="a75d40f91c31b9a2d9f56dee92b9e3c35"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mIsDetached</b></td></tr>
<tr class="separator:a75d40f91c31b9a2d9f56dee92b9e3c35 inherit pro_attribs_class_q_qt_protocol"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a4856c771cfc078135a824f5c9d6027b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4856c771cfc078135a824f5c9d6027b4">&#9670;&nbsp;</a></span>dispatcher()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool QQtClient2Protocol::dispatcher </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>语义解析器 分发报文 /.../quint16 size/.../QByteArray data/.../ </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">数据包</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 no dispatched(others) 1 dispatched(own) </dd></dl>

<p>Reimplemented from <a class="el" href="class_q_qt_protocol.html#a35a69c4b89c8cf7459038f40d75e0dc9">QQtProtocol</a>.</p>

</div>
</div>
<a id="a4b8afc8d5785c9f7605df38e06a39008"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b8afc8d5785c9f7605df38e06a39008">&#9670;&nbsp;</a></span>maxlength()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual quint16 QQtClient2Protocol::maxlength </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>最大包长 </p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

<p>Reimplemented from <a class="el" href="class_q_qt_protocol.html#af41bc3116abbbcfc9af45e151a253ff7">QQtProtocol</a>.</p>

</div>
</div>
<a id="abf17d8d38925c2e9ab9bac4f6bf00223"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf17d8d38925c2e9ab9bac4f6bf00223">&#9670;&nbsp;</a></span>minlength()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual quint16 QQtClient2Protocol::minlength </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>最小包长 </p>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

<p>Reimplemented from <a class="el" href="class_q_qt_protocol.html#a2b00f53d3dd0eed817eeecff422891f3">QQtProtocol</a>.</p>

</div>
</div>
<a id="ad5c123b096a1b1bc13bf1f1db22df4e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5c123b096a1b1bc13bf1f1db22df4e2">&#9670;&nbsp;</a></span>splitter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual quint16 QQtClient2Protocol::splitter </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>语法解析器 从流中解析报文长度 /.../quint16 size/.../.../... </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">接收到的数据段</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>按照协议解析到的数据长度 可用，继续接收，丢弃，粘包。 </dd></dl>

<p>Reimplemented from <a class="el" href="class_q_qt_protocol.html#a00fd0c1ac23379ed3b9b25da9a34f39b">QQtProtocol</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>R:/Develop/a0-develop/LibQQt/examples/qqtclientexample/<a class="el" href="qqtclient2protocol_8h_source.html">qqtclient2protocol.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
